package com.eastedu.client.warehouse;

import com.eastedu.client.warehouse.model.KnowledgeInfoDTO;
import com.eastedu.client.warehouse.model.KnowledgeMatchVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author 袁松明
 */
@FeignClient(value = "warehouse", contextId = "WarehouseJyeooResourceSearchClient", path = "/warehouse")
public interface JyeooResourceSearchClient {
    /**
     * 匹配知识点
     *
     * @param vo 请求参数
     * @return 知识点列表
     */
    @PostMapping(value = "/api/third-resources/jeyoo/knowledge/match?version=1.0")
    List<KnowledgeInfoDTO> match(@RequestBody KnowledgeMatchVO vo);
}
